/**
 * @author: 團長
 * @date: 2014-2-12-上午9:52:54
 */
package net.loyintean.pearlshell.task.bus;

import java.util.List;
import java.util.concurrent.FutureTask;

/**
 * Factory for tasks. This factory provides a list of FutureTask for
 * ITaskDestributeService.
 * 
 * @author 團長
 * @since 2014-2-12
 * @version 1.0.0
 */
public interface ITaskFactory<T> {

	/**
	 * produce a list of FutureTask.
	 * 
	 * @author 團長
	 * @since 2014-2-17
	 * @param taskDatas
	 *            datas for tasks.
	 * @return
	 */
	public List<FutureTask<T>> produceTasks(Object... taskDatas);
}
